


//  latitude: 40.10038, // 纬 度
//  longitude: 116.36867, // 经 度
//  address: {}, // 地址信息对象
//  categorys: [], // 分类数组
//  shops: [], //商家数组

// export const RECEIVE_ADDRESS = 'receive_address' 
// // 接收地址信息 
// export const RECEIVE_CATEGORYS = 'receive_categorys' 
// // 接 收 分 类 数 组 
// export const RECEIVE_SHOPS = 'receive_shops'
//  // 接收商家数组


import { RECEIVE_ADDRESS, RECEIVE_CATEGORYS, RECEIVE_SHOPS ,USER_INFO} from './mutation-types'




export default {
    //获取categorys 分类列表

    [RECEIVE_CATEGORYS](state, categorys) {
        // console.log(categorys)

        state.categorys = categorys;

    },


    [RECEIVE_SHOPS](state, shops) {
        // console.log(categorys)

        state.shops = shops;

    },

    [USER_INFO](state,userInfo) {
        state.userInfo = userInfo;
    }







}